//
//  CDSetSwitchView.h
//  CuriosityDaily3
//
//  Created by donghao on 16/9/24.
//  Copyright © 2016年 theBestTeam. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, CDSwitchState) {
    CDSwitchStateNormal = 1,
    CDSwitchStateSelected = 0,
};

@class CDSetSwitchView;
@protocol CDSetSwitchViewDelegate <NSObject>

- (void)switchView:(CDSetSwitchView *)switchView stateChanged:(CDSwitchState)switchState;

@end

@interface CDSetSwitchView : UIView

@property(nonatomic,weak) id<CDSetSwitchViewDelegate> delegate;

// 颜色
@property(nonatomic,strong) UIColor *tintColor;

// 状态
@property(nonatomic,assign) CDSwitchState switchState;
@end
